﻿using Playnite.SDK;
using Playnite.SDK.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LocalGameLibrary
{
    public class LocalGameMetadataProvider : LibraryMetadataProvider
    {
        private ILogger logger = LogManager.GetLogger();
        private IPlayniteAPI api;
        private readonly LocalGameLibrarySettings settings;

        public LocalGameMetadataProvider(IPlayniteAPI api, LocalGameLibrarySettings settings)
        {
            this.api = api;
            this.settings = settings;
        }

        public override GameMetadata GetMetadata(Game game)
        {
            return null;
            //api.Resources.
            //GameMetadata metadata = new GameMetadata();
            //metadata.Name = game.Name;
            //metadata.GameId = game.GameId;
            //metadata.Description = game.Description;
            //metadata.InstallDirectory = game.InstallDirectory;
            //metadata.SortingName = game.SortingName;
            //metadata.GameActions = game.GameActions;
            //metadata.ReleaseDate = game.ReleaseDate;
            //metadata.Links = game.Links;
            //metadata.Roms = game.Roms;
            //metadata.IsInstalled = game.IsInstalled;
            //metadata.Playtime = game.Playtime;
            //metadata.PlayCount = game.PlayCount;
            //metadata.LastActivity = game.LastActivity;
            //metadata.CompletionStatus = game.CompletionStatus;
            //metadata.UserScore = game.UserScore;
            //metadata.CriticScore = game.CriticScore;
            //metadata.CommunityScore = game.CommunityScore;
            //metadata.Icon = new MetadataFile(game.Icon);
            //metadata.CoverImage = new MetadataFile(game.CoverImage);
            //metadata.BackgroundImage = new MetadataFile(game.BackgroundImage);
            //metadata.Hidden = game.Hidden;
            //metadata.Favorite = game.Favorite;
            //metadata.Version = game.Version;
            //metadata.Source = game.Source;
            //metadata.Series = game.Series;
            //metadata.AgeRatings = game.AgeRatings;
            //game.Notes += "Hahaha";
            //game.game
        }
    }
}
